package org.southyin.springboot02.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.southyin.springboot02.model.CmsCustomer;
//@Mapper
public interface CmsCustomerMapper {
    // 根据邮箱查询用户
    int findCustomerByEmail(String email);

    // 新增用户
    int saveCustomer(CmsCustomer cmsCustomer);

    // 根据邮箱和密码查询用户
    CmsCustomer findCustomerByEmailAndPass(CmsCustomer cmsCustomer);

    // 查询用户信息
    CmsCustomer getPersonInfos(Long id);
}
